Skip to content

Cross-compile to sbt 2 - #64

Merged
mkurz merged 3 commits into
sbt:mainfrom
anatoliykmetyuk:sbt2-port
Jan 13, 2026
Merged

Cross-compile to sbt 2#64
mkurz merged 3 commits into
sbt:mainfrom
anatoliykmetyuk:sbt2-port

Conversation

@anatoliykmetyuk

Copy link
Copy Markdown
Member

No description provided.

@BillyAutrey BillyAutrey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🚢

Comment thread .github/workflows/build-test.yml Outdated
scala: 2.12.21, 3.7.2
cmd: |
sbt ++$MATRIX_SCALA test ^scripted
sbt ++$MATRIX_SCALA test +scripted

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anatoliykmetyuk @BillyAutrey shouldn't this just be

Suggested change
sbt ++$MATRIX_SCALA test +scripted
sbt ++$MATRIX_SCALA test scripted

?
The scala versions in the build matrix already take care that the tests run for each scala version.
Like

run both for 3.7.2 and 2.12.x each? Or am I wrong?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do typically remove the + when running with the matrix, you're right. Locally I test with +scripted.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread build.sbt Outdated

ThisBuild / (pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.11.7"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can already switch to 1.12.0 everywhere (also other places in the repo). @BillyAutrey @anatoliykmetyuk wdyt?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, either way is fine.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread build.sbt Outdated
@@ -1,3 +1,7 @@
lazy val scala212 = "2.12.20"
lazy val scala3 = "3.7.2"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.7.4 is latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixedf

Comment thread build.sbt Outdated
@@ -1,3 +1,7 @@
lazy val scala212 = "2.12.20"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.12.21 is latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@mkurz
mkurz merged commit 2a6b8ad into sbt:main Jan 13, 2026
12 checks passed
@mkurz

mkurz commented Jan 13, 2026

Copy link
Copy Markdown
Member

Thanks!

@anatoliykmetyuk
anatoliykmetyuk deleted the sbt2-port branch January 14, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants